$(function() {
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    let is_mini = GetQueryString('is_mini');
        $('.mommy_school_btn').click(function () {
            if (is_mini == 'true') {
                wx.miniProgram.switchTab({url: '/pages/mommySchool/mommySchool'})
            }else {
                window.location.href='kekeshi://app.kekeshi.com/mom/course'
            }
        })
});
